
import Relay from "react-relay";
export default class GetSendDetailsMutation extends Relay.Mutation {

    static fragments = {};

    getMutation() {
        return Relay.QL`mutation { getSendDetails }`;
    }

    getVariables() {
        return {
            argsInput: {
                recordId:this.props.recordId
            }
        };
    }

    getFatQuery() {
        return Relay.QL`fragment on getSendDetailsPayload {
            getSendDetails {
                errorCode
                value
                totalResult
                id
                sendDetailss{
                    sendQuantity
                    goodsId
                    price
                    recordId
                    remainingQuantity
                    quantity
                    goodsName
                    sid
                    goodsSize
                    
                }
            }
        }`;
    }

    getConfigs() {
        return [{
            type: 'REQUIRED_CHILDREN',
            children: [Relay.QL`
               fragment on getSendDetailsPayload {
                        getSendDetails {
                            errorCode
                            value
                            totalResult
                            id
                           sendDetailss{
                            sendQuantity
                            goodsId
                            price
                            recordId
                            remainingQuantity
                            quantity
                            goodsName
                            sid
                            goodsSize
                        }
                        }
                 }
            `]
        }];
    }

}
